<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div style="background-color: aqua;" onclick="tan()">2222</div>
    <script>
        function tan() {
            console.log(1111);
            let numy;
            let numx;
            setInterval(() => {
               
            }, 500);
            setInterval(() => {
                numx = Math.ceil(Math.random() * 1000);
                numy = Math.ceil(Math.random() * 1000);
                myWindow = window.open('', '', 'width=200,height=100');
                myWindow.moveTo(numx, numy);
                myWindow.document.write("<p>我是大傻逼</p>");
            }, 500);

        }
        // let url =http://www.runoob.com/index.php?id=1&image=awesome.jpg;
        function getQueryVariable(variable) {
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i = 0; i < vars.length; i++) {
                var pair = vars[i].split("=");
                if (pair[0] == variable) { return pair[1]; }
            }
            return (false);
        }
        // console.log(getQueryVariable("utm_source"));

    </script>
</body>

</html>